import "core-js/stable"
import React from 'react'
import { ConfigProvider as ConfigProviderAnt, Empty } from 'antd'
import EmptySvg from '../../assets/empty.svg'

class ConfigProvider extends React.Component {
  render () {
    return (
      <ConfigProviderAnt
        renderEmpty={() => <Empty image={EmptySvg} description={'无内容'}/>}
      >
        {this.props.children}
      </ConfigProviderAnt>
    )
  }
}

export default ConfigProvider